import { IsNotEmpty, IsString, Length } from 'class-validator';
export class CreateArticleDto {
    @IsNotEmpty()
    articleid: string;

    @Length(0, 100)
    title: string;

    @IsNotEmpty()
    content: string;

    @IsNotEmpty()
    userid: string;

}
export class getArticleListDto {
    keyword: string;
    @IsNotEmpty()
    page: number;
    @IsNotEmpty()
    pageSize: number;
    //排序
    sort: string;
}
export class getArticleDetailDto {
    articleid: string;
}
